package com.joshua.spring.gateway.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import static com.joshua.spring.constants.MicroServiceHttpHeaders.X_UNIQUE_CODE;

/**
 * projectName dragon-cloud
 * package com.joshua.spring.gateway.properties
 * classname  SystemUniqueCodeHeaderValidProperties
 * <p>
 * description 系统唯一标识校验
 * </p>
 *
 * @author <a href="mailto:joshualwork@163.com">joshua_liu</a>
 * @date 2020/8/27 23:57
 */
@Data
@Component
@ConfigurationProperties(prefix = "dragon.unique-valid")
public class SystemUniqueCodeHeaderValidProperties {
    private boolean enable = false;
    private String headerKey = X_UNIQUE_CODE;
    private String headerValue = "default";
}
